<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:rich="http://java.sun.com/jsf/composite/jquery">

<h:head>
<ui:include src="topo.xhtml"></ui:include>
<script src="js/jquery-1.5.2.min.js"></script>
    <script type="text/javascript" src="../js/ajax.js"></script>
	<script src="../js/jquery.maskedinput-1.3.min.js"></script>
	<script src="../js/script_cadastro.js"></script>


<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style_cadastro_curso.css" rel="stylesheet" type="text/css" />
<link href="../css/style_cadastro_professor.css" rel="stylesheet" type="text/css" />
	
<script type="text/javascript">

//LIMPA UM FORMULARIO
function limparFormulario(parametro)
{
	document.getElementById(parametro).reset();	
}
</script>

</h:head>
<h:body>
<h:panelGroup rendered="#{gerenciador_equipamento.usuario.permicao== 'administrador'}">
<div class="conteudo">
      <h:form id="form">
      <p:growl showDetail="true"></p:growl>
		<div class="conteudo_limite">
			<div class="titulo">

				<img alt="" src="../css/img/icon_lista.png" />

				<p>Listagem de Salas</p>

				<div class="clr"></div>

			</div>

			

			<div class="clr"></div>

		</div>
			<div class="conteudo_limite">

                    
					<div class="cadastro_professor form">
					
		<p:dataTable id="cars" var="sala" value="#{manter_sala.lista}" rowKey="#{sala}"
                        selection="#{manter_sala.nomeSala}" emptyMessage="Nenhum registro para a exibição." selectionMode="single">

        <f:facet name="header">
           Veja abaixo a lista de todos os usuarios cadastrados no sistema
        </f:facet>

        <p:column headerText="Codigo">
            #{sala.codigo}
        </p:column>

        <p:column headerText="Descrição">
            #{sala.descricao}
        </p:column>
        
         <p:column headerText="Bloco" >
            #{sala.bloco.nome}
        </p:column>

        <p:column headerText="Sala" >
            #{sala.nome}
        </p:column>

    </p:dataTable>

    					</div>
				</div>
				<div class="clr"></div>
				<br />
		</h:form>
		</div>
</h:panelGroup>		
</h:body>
<ui:include src="rodape.xhtml"></ui:include>
</html>
